<?php
    // +----------------------------------------------------------------------
    // | ThinkPHP [ WE CAN DO IT JUST THINK ]
    // +----------------------------------------------------------------------
    // | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
    // +----------------------------------------------------------------------
    // | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
    // +----------------------------------------------------------------------
    // | Author: liu21st <liu21st@gmail.com>
    // +----------------------------------------------------------------------
    
    return [
        // 文档
        'doc'          => ['index/Doc/index', ['method'=>['OPTIONS',"GET"]]],
        'getDoc'       => ['index/Doc/getDoc', ['method'=>['OPTIONS',"GET"]]],

        // 公告列表
        'notice/list' => ['index/Index/noticeList', ['method'=>['OPTIONS',"GET"]]],
        'notice/lists' => ['index/Index/noticeLists', ['method'=>['OPTIONS',"GET"]]],
        // 公告详情
        'notice/get'  => ['index/Index/getNotice', ['method'=>['OPTIONS',"GET"]]],
        // 留言列表
        'msg/list'    => ['index/User/noteList', ['method'=>['OPTIONS',"GET"]]],
        // 添加留言
        'msg/add'     => ['index/User/leaveNote', ['method'=>['OPTIONS',"post"]]],

        
        'province'     => ['index/Area/getProvince', ['method'=>['OPTIONS',"GET"]]],
        'city'         => ['index/Area/getCity', ['method'=>['OPTIONS',"GET"]]],
        'dist'         => ['index/Area/getDisc', ['method'=>['OPTIONS',"GET"]]],
        // ------------------------------------------------------------------------
        // 玩家登录
        'login'        => ['index/User/login', ['method'=>['OPTIONS',"POST"]]],
        // 玩家注册
        'reg'          => ['index/User/reg', ['method'=>['OPTIONS',"POST"]]], 
        // 获取验证码
        'smscode'      => ['index/User/smsCode', ['method'=>['OPTIONS',"POST"]]],
        
        // ------------------------------------------------------------------------
        // 玩家列表
        'user/index'  => ['index/User/index', ['method'=>['OPTIONS',"GET"]]], 
        // 玩家团队
        'user/team'   => ['index/User/getTeam', ['method'=>['OPTIONS',"GET"]]], 
        // 玩家详情
        'user/get'    => ['index/User/getInfo', ['method'=>['OPTIONS',"GET"]]], 
        // 修改信息
        'user/put'    => ['index/User/editInfo', ['method'=>['OPTIONS',"POST"]]], 
        // 成为商家
        'user/toshop' => ['index/User/toshop', ['method'=>['OPTIONS',"GET"]]], 
        
        // 玩家货币转换
        'user/coin'   => ['index/User/coinTrans', ['method'=>['OPTIONS',"POST"]]], 
        // 货币转换规则
        'coin/rules'  => ['index/User/coinRules', ['method'=>['OPTIONS',"GET"]]],
        
        'user/acclog' => ['index/User/getAcclog', ['method'=>['OPTIONS',"POST"]]], 
        
        // ------------------------------------------------------------------------
        // 糖果机类型
        'candy/type' => ['index/Candy/category', ['method'=>['OPTIONS',"get"]]],
        // 玩家糖果机
        'candy/my'   => ['index/Candy/myMachine', ['method'=>['OPTIONS',"GET"]]],
        // 获取糖果机
        'candy/get'  => ['index/Candy/getMachine', ['method'=>['OPTIONS',"post"]]],
        // 购买糖果机
        'candy/buy'  => ['index/Candy/buyMachine', ['method'=>['OPTIONS',"POST"]]],
        // 糖果机释放记录
        'candy/log'  => ['index/Candy/cmFreeLog', ['method'=>['OPTIONS',"POST"]]],
        // ------------------------------------------------------------------------
        // 转账代理
        'user/agent'     => ['index/User/userAgent', ['method'=>['OPTIONS',"POST"]]],
        // 转账记录
        'user/transList' => ['index/User/transList', ['method'=>['OPTIONS',"POST",'GET']]],
        
        // 代理充值
        'agent/user'     => ['index/Agent/payCoin', ['method'=>['OPTIONS',"POST"]]],
        // 代理充值记录
        'agent/paylog'   => ['index/Agent/payLog', ['method'=>['OPTIONS',"POST"]]],

        // 交易大厅卖出
        'user/sell'       => ['index/User/sell', ['method'=>['OPTIONS',"POST"]]], 
        // 取消卖出
        'user/canclesell' => ['index/User/cancleSell', ['method'=>['OPTIONS',"POST"]]], 

        // 交易大厅买入
        'user/buy'     => ['index/User/buy', ['method'=>['OPTIONS',"POST"]]], 
        // 卖出记录
        'sell/get'     => ['index/User/sellList', ['method'=>['OPTIONS',"POST"]]], 
        'sell/confirm' => ['index/User/sellConfirm', ['method'=>['OPTIONS',"POST"]]], 
        // 买入记录
        'buy/get'      => ['index/User/sellList', ['method'=>['OPTIONS',"POST"]]],
        
        // ------------------------------------------------------------------------
        // 商城头图
        'mallpic'      => ['index/shop/getMallpic', ['method'=>['OPTIONS',"GET"]]],
        // 获取商品
        'goods'        => ['index/Shop/getGoods', ['method'=>['OPTIONS',"POST"]]],
        // 获取商品详情
        'goods/get'    => ['index/Shop/goodsInfo', ['method'=>['OPTIONS',"POST"]]],
        'goods/cate'   => ['index/Shop/getCate', ['method'=>['OPTIONS',"GET"]]],
        // 添加商品
        'goods/create' => ['index/Shop/addGoods', ['method'=>['OPTIONS',"POST"]]],
        'goods/update' => ['index/Shop/editGoods', ['method'=>['OPTIONS',"POST"]]],
        
        // ------------------------------------------------------------------------
        // 添加购物车
        'cart'        => ['index/Cart/index', ['method'=>['OPTIONS',"POST"]]],
        // 修改购物车信息
        'cart/add'    => ['index/Cart/update', ['method'=>['OPTIONS',"POST"]]],
        
        'cart/delete' => ['index/Cart/delete', ['method'=>['OPTIONS',"POST"]]],

        // ------------------------------------------------------------------------
        // 订单列表
        'order'         => ['index/Order/index', ['method'=>['OPTIONS',"POST"]]],
        // 获取订单详情
        'order/get'     => ['index/Order/read', ['method'=>['OPTIONS',"POST"]]],
        // 订单支付
        'order/pay'     => ['index/Order/payOrder', ['method'=>['OPTIONS',"POST"]]],
        // 创建订单
        'order/add'     => ['index/Order/create', ['method'=>['OPTIONS',"POST"]]],
        // 取消未支付订单
        'order/cancle'  => ['index/Order/cancleOrder', ['method'=>['OPTIONS',"POST"]]],
        // 确认收货
        'order/confirm' => ['index/Order/confirmOrder', ['method'=>['OPTIONS',"POST"]]],
        // 更改订单状态
        'order/updata'  => ['index/Order/index', ['method'=>['OPTIONS',"POST"]]],
        // '__miss__'  => 'index/index/miss',
    ];